﻿@model S4Store.Models.AfterSaleCarKPI.ServiceAdvisorListModel
@{
    ViewBag.Title = "MonthConfig";
    Layout = null;
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
@{int i = 0;}
<form class="pageForm addpage" action="@Url.Action("ModifyBackInputServiceAdvisorMonthConfig")" method="post">
<div style=" height:100%; width:100%; overflow:hidden" class="verticalSplitContainer">
    <div class="" style="overflow: auto;" ratio="#150">
         <table  class="rpttable"  style="border-collapse:collapse;">
            <tr height="90"  class="vtr">
                <th class="yellow" ><div class="wd40 pd510"><div class="wd20">售后前台接待姓名</div></div>
                </th>
               <th class="yellow" ><div class="wd30 pd510"><div class="wd20">上月末分管客户总数</div></div>
                </th>
                @*<th class="yellow" ><div class="wd30 pd510"><div class="wd20">本月A卡转C卡客户数</div></div>
                </th>*@
               <th class="yellow" ><div class="wd30 pd510"><div class="wd20">六个月未回厂总数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">四个月未回厂总数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">本月应实施5K保养数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">本月应实施10K保养数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">本月招徕回厂目标数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">本月事故车入厂台次目标</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">本月维修入厂台次目标</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">本月事故车产值目标(万)</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">本月维修产值目标(万)</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">用品目标销售额(万)</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">养护产品目标销售额(万)</div></div>
                </th>
               <th class="yellow" ><div class="wd30 pd510"><div class="wd20">首次续保台次目标</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">二次续保台次目标</div></div>
                </th>
               <th class="yellow" ><div class="wd30 pd510"><div class="wd20">客户满意度考核目标</div></div>
                </th>
            </tr>
</table>
</div>
<div class="" style="overflow: auto;" ratio="*">
 <table  class="rpttable"  style="border-collapse:collapse;">
            @foreach (var employee in Model.Employees)
            {
                var item = Model.MonthTargets.Where(o => o.EmployeeId == employee.Id).FirstOrDefault();
                if (item == null)
                {
                    item = new S4Store.Domain.AfterSaleKpi.AfterSaleServiceAdvisorMonthTarget();
                }
                <tr>
                    <td><div class="wd40 pd510">@employee.Name<input type="hidden" name="afterSaleCarlist[@i].EmployeeId" value="@employee.Id" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].SYMFGKHZS_LastMonthManageCustomerNum" value="@item.SYMFGKHZS_LastMonthManageCustomerNum" />
                    </div></td>
                    @*<td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYAKZCKKHS_ACard2CCardTarget" value="@item.BYAKZCKKHS_ACard2CCardTarget" />
                    </div></td>*@
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYXZLGYWHCS_NewAddedNoFactoryIn6Month" value="@item.LGYWHCZS" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYXZSGYWHCS_NewAddedNoFactoryIn4Month" value="@item.SGYWHCZS" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYYSSWKBYS_5KMaintenceTarget" value="@item.BYYSSWKBYS_5KMaintenceTarget" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYYSSSQBYS_10KMaintenceTarget" value="@item.BYYSSSQBYS_10KMaintenceTarget" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYYZHCMBS_ReturnFactoryTarget" value="@item.BYYZHCMBS_ReturnFactoryTarget" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYSGCRCTCMB_AccidentCarToFactoryTarget" value="@item.BYSGCRCTCMB_AccidentCarToFactoryTarget" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYWXRCTCMB_MaintenceCarToFactoryTarget" value="@item.BYWXRCTCMB_MaintenceCarToFactoryTarget" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYSGCCZMB_AccidentCarValueTarget" value="@item.BYSGCCZMB_AccidentCarValueTarget" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYWXCZMB_MaintenceValueTarget" value="@item.BYWXCZMB_MaintenceValueTarget" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].JPMBXSE_CompetitiveSaleTarget" value="@item.JPMBXSE_CompetitiveSaleTarget" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].YHCPMBXSE_MaintenceSaleTarget" value="@item.YHCPMBXSE_MaintenceSaleTarget" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].SCXBTCMB_FirstRenewTarget" value="@item.SCXBTCMB_FirstRenewTarget" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].ECXBTCMB_SecondRenewTarget" value="@item.ECXBTCMB_SecondRenewTarget" />
                    </div></td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].KHMYDKHMB_CustomerSatisfactionTarget" value="@item.KHMYDKHMB_CustomerSatisfactionTarget" />
                    </div></td>
                    
                </tr>
               i++;
            }
        </table>
    </div>
    <input type="hidden" name="y" value="@Model.Date.Year" /> <input type="hidden" name="m" value="@Model.Date.Month" />
        <div class="formBar" ratio="#30">
    @if (!Model.isconfirmed || CurrentUser.Position == S4Store.Domain.Position.SystemManager)
    {
        <ul>
            <li>
                <div class="simplebutton">
                    <div class="r">
                        <button type="button" class="submit">
                            保存</button></div>
                </div>
            </li>
            <li>确认数据：<input type="checkbox" name="isconfirm" value="true" /></li>
        </ul>
    }
    </div>
</div>
</form>
